<template>
  <div id="test">
    test
    <button @click="hide">隐藏</button>
  </div>
</template>

<script>
export default {
  name: 'test-api',
  mounted() {
    console.log(this.isSh)
  },
  props: ['isSh'],
  methods: {
    hide() {
      this.$emit('isShows', false)
    }
  }
}
</script>

<style >
  #test {
    color: red;
  }
</style>
